<? 
    $menu = array(
        'user' => array(
        ),
        'admin' => array(
        	'Leaves'       => array('controller' => 'leaves',      'action' => 'index'),
        	'Leave Types'  => array('controller' => 'leave_types', 'action' => 'index'),
            'Holidays'     => array('controller' => 'holidays',    'action' => 'index')
        )
    );
?>
<menu>
	<li class="user"><?= $role ?></li>
    <? foreach ($menu[$role] as $label=>$link): ?>
    <li><?= $this->Html->link($label, $link) ?></li>
    <? endforeach ?>
    <li><?= $this->Html->link('Exit', '/app/logout') ?></li>
</menu>